<?php
require_once('upyun.class.php');

$upyun = new UpYun('liuwt123', 'liuwt123', 'wszgrwazg');

try {
    $list = $upyun->getList('/');
    print_r($list);
}
catch(Exception $e) {
    echo $e->getCode();
    echo $e->getMessage();
}
